package edu.stu.cs.software.family.admin.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.stu.cs.software.family.base.domain.BaseEntity;

/**
 * User is extended by the base class BaseEntity The primary key is the id of
 * BaseEntity
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "O_ADMIN_USER")
public class User extends BaseEntity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6070459481464825332L;

	@ManyToOne
	@JoinColumn(name = "TEAM_ID")
	Team team;

	@Column(name = "USERNAME")
	String userName;
	@Column(name = "PASSWORD")
	String password;
	@Column(name = "PHONE")
	String phone;
	@Column(name = "ADDR")
	String addr;

	public Team getTeam() {
		return team;
	}

	public void setTeam(Team team) {
		this.team = team;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	
}
